<% @images.each do |image| %>
  <%= check_box_tag("record[images][#{image.id}][id]", image.id, @selections.include?(image.id.to_s)) %>
  <%= image_preview(image, false) %>
  <br />
<% end -%>

<% more_id = "more_images_from_" + @offset.to_s -%>
<% if @limit > 0 -%>
  <div class="more" id="<%= more_id %>">
    <%= link_to_remote "更多...", 
      :update => more_id, 
      :url => {:limit => @limit, :offset => @offset},
      :loading => '$("loader_more").show()',
      :loaded => '$("loader_more").hide();'
    %>
    <%= image_tag "active_scaffold/default/indicator.gif", :style => "display:none", :id => 'loader_more' %>
  </div>
<% end -%>
